home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_200_102 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  540 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.gameOn == 1)
  3.    {
  4.       _root.hitPlayer(this);
  5.       if(_X < - _width - 10)
  6.       {
  7.          removeMovieClip(this);
  8.       }
  9.       if(isNegative == 0 && _root.negativeColor == 1)
  10.       {
  11.          myColor.negative();
  12.          isNegative = 1;
  13.       }
  14.       if(isNegative == 1 && _root.negativeColor == 0)
  15.       {
  16.          myColor.setTransform(_root.origStars);
  17.          isNegative = 0;
  18.       }
  19.       myColor.setBrightOffset(random(100));
  20.       _X = _X - _root.groundSpeed * 2;
  21.    }
  22. }
  23.